package com.jh.jingfei.login;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.WindowManager;

import com.jh.jingfei.R;
import com.jh.jingfei.login.ui.LoginFragment;
import com.jh.jingfei.main.MainFragment;

import me.yokeyword.fragmentation.SupportActivity;

public class LoginActivity extends SupportActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
        setContentView(R.layout.activity_login);

        // login_content

        if (findFragment(MainFragment.class) == null) {
            loadRootFragment(R.id.login_content, LoginFragment.newInstance("", ""));  //load root Fragment
        }
    }
}
